<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <link rel="stylesheet" href="https://fastly.jsdelivr.net/npm/@fortawesome/fontawesome-free@6/css/all.min.css" />
    <title>L2D-Widget</title>
  </head>
  <body>
    <!-- 右下角live2d效果 -->
    <script src="https://eqcn.ajz.miesnfu.com/wp-content/plugins/wp-3d-pony/live2dw/lib/L2Dwidget.min.js"></script>
    <!-- <script src="https://fastly.jsdelivr.net/gh/stevenjoezhang/live2d-widget@latest/autoload.js"></script> -->
    <!-- <script
      type="text/javascript"
      charset="utf-8"
      src="https://files.cnblogs.com/files/liuzhou1/L2Dwidget.0.min.js"
    ></script>
    <script
      type="text/javascript"
      charset="utf-8"
      src="https://files.cnblogs.com/files/liuzhou1/L2Dwidget.min.js"
    ></script> -->
    <script type="text/javascript">
      // 其他可选的模型：
      //  小帅哥： https://unpkg.com/live2d-widget-model-chitose@1.0.5/assets/chitose.model.json
      //  萌娘：https://unpkg.com/live2d-widget-model-shizuku@1.0.5/assets/shizuku.model.json
      //  小可爱（女）：https://unpkg.com/live2d-widget-model-koharu@1.0.5/assets/koharu.model.json
      //  小可爱（男）：https://unpkg.com/live2d-widget-model-haruto@1.0.5/assets/haruto.model.json
      //  初音：https://unpkg.com/live2d-widget-model-miku@1.0.5/assets/miku.model.json

      //   L2Dwidget.init({
      //     model: {
      //       jsonPath: 'https://unpkg.com/live2d-widget-model-shizuku@1.0.5/assets/shizuku.model.json',
      //       scale: 1,
      //       hHeadPos: 0.5,
      //       vHeadPos: 0.618,
      //     },
      //     dialog: {
      //       enable: true,
      //       script: {
      //         'tap body': '哎呀！别碰我！',
      //         'tap face': '人家是在认真写博客哦--前端妹子',
      //       },
      //     },
      //     mobile: { show: true, scale: 0.5 },
      //     display: {
      //       superSample: 2,
      //       width: 200,
      //       height: 400,
      //       position: 'right',
      //       hOffset: 0,
      //       vOffset: 0,
      //     },
      //   });
      //
    </script>

    <script>
      L2Dwidget.init({
        model: {
          jsonPath: 'https://unpkg.com/live2d-widget-model-shizuku@1.0.5/assets/shizuku.model.json',
          // jsonPath: 'https://unpkg.com/live2d-widget-model-haruto@1.0.5/assets/haruto.model.json',
          scale: 1,
        },
        display: {
          position: 'right',
          width: 150,
          height: 300,
          hOffset: 0,
          vOffset: -20,
        },
        dialog: {
          enable: true,
          script: {
            'tap body': '哎呀！别碰我！',
            'tap face': '人家是在认真写博客哦--前端妹子',
          },
        },
        mobile: {
          show: true,
          scale: 0.5,
        },
        react: {
          opacityDefault: 0.7,
          opacityOnHover: 0.2,
        },
      });
    </script>
  </body>
</html>
